package cn.itsource.api;

import cn.itsource.fallback.RuleStartRemoteApiFallbackFactory;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "it-fccar-service-rule",fallbackFactory = RuleStartRemoteApiFallbackFactory.class)
public interface RuleStartRemoteApi {
    @GetMapping("/manager/rule/{mileage}")
    JSONResult valuation(@PathVariable("mileage")String mileage);

    @GetMapping("/manager/rule/base/{hours}")
    JSONResult getRuleDto(@PathVariable("hours")Integer hours);

    @GetMapping("/manager/rule/driverTotalProportion")
    JSONResult getDriverTotalProportion();
}
